package mainFiles;

/**
 * Represents a user of the gym management system.
 * @author Emily Linniman
 * @version Novemeber 30, 2014
 */
public class User {
	/** The id of the user. */
	private String id;
	
	/** The first name of the user. */
	private String firstName;
	
	/** The last name of the user. */
	private String lastName;
	
	/** The email of the user. */
	private String email;
	
	/** The password of the user. */
	private String password;
	
	/** The role the user plays in the gym management system. */
	private String userRole;
	
	/**
	 * Constructs a new user object
	 * 
	 * @param id the id of the user to create
	 * @param firstName the first name of the user to create
	 * @param lastName the last name of the user to create
	 * @param email the email of the user to create
	 * @param password the password of the user to create
	 * @param userRole the user role of the user to create
	 */
	public User(String id, String firstName, String lastName, String email, String password, String userRole) {
		setID(id);
		setFirstName(firstName);
		setLastName(lastName);
		setEmail(email);
		setPassword(password);
		setUserRole(userRole);
	}
	
	/**
	 * Sets the id of the user object
	 * @param id the id to set the id of the user object to
	 */
	public void setID(String id) {
		this.id = id;
	}
	
	/**
	 * Gets the id of the user object
	 * @return the id of the user object
	 */
	public String getID() {
		return id;
	}
	
	/**
	 * Sets the first name of the user object
	 * @param firstName the first name to set the first name of the user object to
	 */
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	
	/**
	 * Gets the first name of the user object
	 * @return the first name of the user object
	 */
	public String getFirstName() {
		return firstName;
	}
	
	/** 
	 * Sets the last name of the user object
	 * @param lastName the last name to set the last name of the user object to
	 */
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	
	/**
	 * Gets the last name of the user object
	 * @return the last name of the user object
	 */
	public String getLastName() {
		return lastName;
	}
	
	/**
	 * Sets the email of the user object
	 * @param email the email to set the email of the uesr object to
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	
	/**
	 * Gets the email of the user object
	 * @return the email of the user object
	 */
	public String getEmail() {
		return email;
	}
	
	/**
	 * Sets the password of the user object
	 * @param password the password to set the password of the user object to
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	
	/**
	 * Gets the password of the user object
	 * @return the password of the user object
	 */
	public String getPassword() {
		return password;
	}
	
	/**
	 * Sets the user role of the user object
	 * @param userRole the role to set the user role of the user object to
	 */
	public void setUserRole(String userRole) {
		this.userRole = userRole;
	}
	
	/**
	 * Gets the user role of the user object
	 * @return the user role of the user object
	 */
	public String getuserRole() {
		return userRole;
	}
}
